package org.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * @author ben.huang
 */
@Component
@FeignClient(name = "demo-test",url = "http://localhost:8889/test-service")
public interface FeignConnect {
 
    @PostMapping("/date")
    String testDate(@RequestParam("date") Date date);
}